import type { RouteRecordRaw } from 'vue-router';
import { MonitorCog } from "@vben/icons"
const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: MonitorCog,
      keepAlive: true,
      // hideInMenu: true,
      title: '系统管理',
    },

    name: 'System',
    path: '/system',
    children: [
      {
        meta: {
          title: '菜单管理',
        },
        name: 'MenuMgr',
        path: '/system/menuMgr',
        component: () => import('#/views/system/menuMgr.vue'),
      },
      {
        meta: {
          title: '用户管理',
        },
        name: 'User',
        path: '/system/user',
        component: () => import('#/views/system/user.vue'),
      },
      {
        meta: {
          title: '系统组织',
          hideInMenu: true,
        },
        name: 'SystemOrg',
        path: '/system/systemOrg',
        component: () => import('#/views/system/systemOrg.vue'),
      },
      {
        meta: {
          title: '角色管理',
          // hideInMenu:true,
        },
        name: 'role',
        path: '/system/role',
        component: () => import('#/views/system/role.vue'),
      },
      {
        meta: {
          title: '租户管理',
        },
        name: 'Tenant',
        path: '/system/tenant',
        component: () => import('#/views/system/tenant.vue'),
      },
      {
        meta: {
          title: '系统公告管理',
        },
        name: 'SystemAnnouncement',
        path: 'announcement',
        component: () => import('#/views/system/systemAnn.vue'),
      },
    ],
  },
];

export default routes;
